package com.example.gybicycle.entity;

import com.example.gybicycle.common.entity.Entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Date;
import lombok.Data;


@Data
@Schema(name ="活动")
public class Active  extends Entity {
    @Schema(description = "活动id")
    private String id;
    @Schema(description = "活动标题")
    private String title;
    @Schema(description = "活动主图")
    private String image;
    @Schema(description = "活动内容")
    private String content;
    @Schema(description = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;
    @Schema(description = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;
    @Schema(description = "参与人数")
    private Integer joinNum;
    @Schema(description = "活动状态 0 未开始 1 进行中 2 已结束")
    private Integer state;
    @Schema(description = "活动状态 0 未参与 1已参与 ")
    private boolean isJoin;
    @Schema(description = "修改人")
    private String editBy;
    @Schema(description = "修改人名称")
    private  String editName;
    @Schema(description = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date editTime;
    @Schema(description = "登录人",hidden = true)
    private String loginId;

}